<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LiquidFun: b2Body.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LiquidFun
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_4adbe910e807faea824f4d71cf48195e.html">Dynamics</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">b2Body.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* Copyright (c) 2006-2011 Erin Catto http://www.box2d.org</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* Copyright (c) 2013 Google, Inc.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* This software is provided &#39;as-is&#39;, without any express or implied</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* warranty.  In no event will the authors be held liable for any damages</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* arising from the use of this software.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* Permission is granted to anyone to use this software for any purpose,</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">* including commercial applications, and to alter it and redistribute it</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">* freely, subject to the following restrictions:</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* 1. The origin of this software must not be misrepresented; you must not</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* claim that you wrote the original software. If you use this software</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* in a product, an acknowledgment in the product documentation would be</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">* appreciated but is not required.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* 2. Altered source versions must be plainly marked as such, and must not be</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* misrepresented as being the original software.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">* 3. This notice may not be removed or altered from any source distribution.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef B2_BODY_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define B2_BODY_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;Box2D/Common/b2Math.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;Box2D/Collision/Shapes/b2Shape.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">class </span><a class="code" href="classb2_fixture.html">b2Fixture</a>;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">class </span><a class="code" href="classb2_joint.html">b2Joint</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">class </span><a class="code" href="classb2_contact.html">b2Contact</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">class </span>b2Controller;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">class </span><a class="code" href="classb2_world.html">b2World</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">struct </span><a class="code" href="structb2_fixture_def.html">b2FixtureDef</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">struct </span><a class="code" href="structb2_joint_edge.html">b2JointEdge</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">struct </span><a class="code" href="structb2_contact_edge.html">b2ContactEdge</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">enum</span> b2BodyType</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    b2_staticBody = 0,</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    b2_kinematicBody,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    b2_dynamicBody</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="comment">// TODO_ERIN</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="comment">//b2_bulletBody,</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;};</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structb2_body_def.html">   52</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structb2_body_def.html">b2BodyDef</a></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a87bee47596b3b3eced0d9dd1f4c18fee">   55</a></span>&#160;    <a class="code" href="structb2_body_def.html#a87bee47596b3b3eced0d9dd1f4c18fee">b2BodyDef</a>()</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <a class="code" href="structb2_body_def.html#ae457dd1d39be09945eace6061121be29">userData</a> = NULL;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <a class="code" href="structb2_body_def.html#a680cadc09ad6cf4b3366cbf0914c648b">position</a>.<a class="code" href="structb2_vec2.html#a4d61640a645e470a50b451307d8e94c3">Set</a>(0.0f, 0.0f);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <a class="code" href="structb2_body_def.html#a564b16f4f8e9fcb5dda397e64aa9be6f">angle</a> = 0.0f;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <a class="code" href="structb2_body_def.html#a25fa5aa78d93159c344241af95bec2bf">linearVelocity</a>.<a class="code" href="structb2_vec2.html#a4d61640a645e470a50b451307d8e94c3">Set</a>(0.0f, 0.0f);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <a class="code" href="structb2_body_def.html#add7809f7a29656b8c4b643ad8c2f34a9">angularVelocity</a> = 0.0f;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="structb2_body_def.html#a728f6df3be7dedb331455105e3659d46">linearDamping</a> = 0.0f;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <a class="code" href="structb2_body_def.html#a01b8dc8ad9f0962efef9e4a8e836feb6">angularDamping</a> = 0.0f;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <a class="code" href="structb2_body_def.html#a0765068172e521ed63cb34084c59c003">allowSleep</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="structb2_body_def.html#a17a8102638aac41e7ab94278651a45bd">awake</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <a class="code" href="structb2_body_def.html#a273a51c57440a8884de5939d76b6e3ea">fixedRotation</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <a class="code" href="structb2_body_def.html#a7c0047c9a98a1d20614eeddcdbce7586">bullet</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <a class="code" href="structb2_body_def.html#a89cc3ad1873908042b002147b3861381">type</a> = b2_staticBody;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <a class="code" href="structb2_body_def.html#adf6f3e9a9e124e080c68bc0edeb170df">active</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <a class="code" href="structb2_body_def.html#aadea3fa173ed1014739ec8b023de4336">gravityScale</a> = 1.0f;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#if LIQUIDFUN_EXTERNAL_LANGUAGE_API</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">void</span> SetPosition(float32 positionX, float32 positionY);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#endif // LIQUIDFUN_EXTERNAL_LANGUAGE_API</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a89cc3ad1873908042b002147b3861381">   80</a></span>&#160;    b2BodyType <a class="code" href="structb2_body_def.html#a89cc3ad1873908042b002147b3861381">type</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a680cadc09ad6cf4b3366cbf0914c648b">   84</a></span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="structb2_body_def.html#a680cadc09ad6cf4b3366cbf0914c648b">position</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a564b16f4f8e9fcb5dda397e64aa9be6f">   87</a></span>&#160;    float32 <a class="code" href="structb2_body_def.html#a564b16f4f8e9fcb5dda397e64aa9be6f">angle</a>;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a25fa5aa78d93159c344241af95bec2bf">   90</a></span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="structb2_body_def.html#a25fa5aa78d93159c344241af95bec2bf">linearVelocity</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structb2_body_def.html#add7809f7a29656b8c4b643ad8c2f34a9">   93</a></span>&#160;    float32 <a class="code" href="structb2_body_def.html#add7809f7a29656b8c4b643ad8c2f34a9">angularVelocity</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a728f6df3be7dedb331455105e3659d46">   98</a></span>&#160;    float32 <a class="code" href="structb2_body_def.html#a728f6df3be7dedb331455105e3659d46">linearDamping</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a01b8dc8ad9f0962efef9e4a8e836feb6">  103</a></span>&#160;    float32 <a class="code" href="structb2_body_def.html#a01b8dc8ad9f0962efef9e4a8e836feb6">angularDamping</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a0765068172e521ed63cb34084c59c003">  107</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structb2_body_def.html#a0765068172e521ed63cb34084c59c003">allowSleep</a>;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a17a8102638aac41e7ab94278651a45bd">  110</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structb2_body_def.html#a17a8102638aac41e7ab94278651a45bd">awake</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a273a51c57440a8884de5939d76b6e3ea">  113</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structb2_body_def.html#a273a51c57440a8884de5939d76b6e3ea">fixedRotation</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structb2_body_def.html#a7c0047c9a98a1d20614eeddcdbce7586">  119</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structb2_body_def.html#a7c0047c9a98a1d20614eeddcdbce7586">bullet</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="structb2_body_def.html#adf6f3e9a9e124e080c68bc0edeb170df">  122</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structb2_body_def.html#adf6f3e9a9e124e080c68bc0edeb170df">active</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structb2_body_def.html#ae457dd1d39be09945eace6061121be29">  125</a></span>&#160;    <span class="keywordtype">void</span>* <a class="code" href="structb2_body_def.html#ae457dd1d39be09945eace6061121be29">userData</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="structb2_body_def.html#aadea3fa173ed1014739ec8b023de4336">  128</a></span>&#160;    float32 <a class="code" href="structb2_body_def.html#aadea3fa173ed1014739ec8b023de4336">gravityScale</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classb2_body.html">  132</a></span>&#160;<span class="keyword">class </span><a class="code" href="classb2_body.html">b2Body</a></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <a class="code" href="classb2_fixture.html">b2Fixture</a>* <a class="code" href="classb2_body.html#aa4892301e9b9d62ede5e93dad1743894">CreateFixture</a>(<span class="keyword">const</span> <a class="code" href="structb2_fixture_def.html">b2FixtureDef</a>* def);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <a class="code" href="classb2_fixture.html">b2Fixture</a>* <a class="code" href="classb2_body.html#aa4892301e9b9d62ede5e93dad1743894">CreateFixture</a>(<span class="keyword">const</span> <a class="code" href="classb2_shape.html">b2Shape</a>* shape, float32 density);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a856d1df86b7bded91f02d8cfcaea1c2f">DestroyFixture</a>(<a class="code" href="classb2_fixture.html">b2Fixture</a>* fixture);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a4686f32bbce5723761e9719c706eca11">SetTransform</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; position, float32 angle);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keyword">const</span> <a class="code" href="structb2_transform.html">b2Transform</a>&amp; <a class="code" href="classb2_body.html#adaaebca750d0bda56a543884adc5f519">GetTransform</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a798da9dc2d47431912d991d152b13711">GetPosition</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    float32 <a class="code" href="classb2_body.html#a57c4a1946a6dd5a00e28691bc419fdcd">GetAngle</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a04db0c7b12b315802e58b33884f4f63c">GetWorldCenter</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a27ed7f8a3b36ddfb01069ee8f7106033">GetLocalCenter</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a832f3989a44f0d4782c80456832197ad">SetLinearVelocity</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; v);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a427cf835b5d3327a003ff43cb6107ead">GetLinearVelocity</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a37adc4160b84f73e8552a91cbde3f578">SetAngularVelocity</a>(float32 omega);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    float32 <a class="code" href="classb2_body.html#a158fe4c141168d2c3e65096b209f548c">GetAngularVelocity</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a942be8e1cd2bcd06f53c4638c45a9525">ApplyForce</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; force, <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; point, <span class="keywordtype">bool</span> wake);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#abeba04911f7a2a141169bb06fe98d06a">ApplyForceToCenter</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; force, <span class="keywordtype">bool</span> wake);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a54a354447ac3b4cc224c8327a5abc0e8">ApplyTorque</a>(float32 torque, <span class="keywordtype">bool</span> wake);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a7f677e93efb3c4c065087aff317274a3">ApplyLinearImpulse</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; impulse, <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; point, <span class="keywordtype">bool</span> wake);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a65384cfad8db2376cdf3fab38cac06e5">ApplyAngularImpulse</a>(float32 impulse, <span class="keywordtype">bool</span> wake);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    float32 <a class="code" href="classb2_body.html#a4f62fea4546d2b9ca64a5f6723bbc71c">GetMass</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    float32 <a class="code" href="classb2_body.html#a8c8916caf67c1e618a07d8b6b9253fa8">GetInertia</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#ad0a90df7e2617a8572cd476267f95417">GetMassData</a>(<a class="code" href="structb2_mass_data.html">b2MassData</a>* data) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a58a641fedf8a81e1e26d09ec00a22fe2">SetMassData</a>(<span class="keyword">const</span> <a class="code" href="structb2_mass_data.html">b2MassData</a>* data);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a109d8567c6ae84c61fce2919fb209c63">ResetMassData</a>();</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a8055b90bccb51383caa8c42fbc96c9c3">GetWorldPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; localPoint) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#afd44622669b5e45202c23e4a212895fc">GetWorldVector</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; localVector) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a8f9ef0226b7eb989e700fa8898d29fc0">GetLocalPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; worldPoint) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a93de09565c0c1a9da2601c1847aa22df">GetLocalVector</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; worldVector) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a4238ae43f5afeb2126b8e8bf765334b5">GetLinearVelocityFromWorldPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; worldPoint) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a4429e3f380e882def11c52ac893b8e2e">GetLinearVelocityFromLocalPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; localPoint) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    float32 <a class="code" href="classb2_body.html#a7283e4821d24aed0fa5b0f7891175183">GetLinearDamping</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a909f9753ad700f70282a56e00bc182a5">SetLinearDamping</a>(float32 linearDamping);</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    float32 <a class="code" href="classb2_body.html#a5153143f2593802c85e54a21de5464ce">GetAngularDamping</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a73a79541b18394fa224d2eae8ad493e8">SetAngularDamping</a>(float32 angularDamping);</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    float32 <a class="code" href="classb2_body.html#ad8348f06a391d169d6395dfd66762454">GetGravityScale</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a8e66a570c2aeee93b29d84cae861a612">SetGravityScale</a>(float32 scale);</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a34ff1c84b10b74eb990749a025a1b1ad">SetType</a>(b2BodyType type);</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    b2BodyType <a class="code" href="classb2_body.html#aa0d5acad4f0104e709e34e29a4a0c1a4">GetType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a3253af3725b8d6d63d8223bcd2ddab5c">SetBullet</a>(<span class="keywordtype">bool</span> flag);</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#af48509b43c9474b394cf76d733b56882">IsBullet</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a229a6de228416203fecbf7a7544c33bb">SetSleepingAllowed</a>(<span class="keywordtype">bool</span> flag);</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#ac0b0c558008bda8cf7984dbaf2ee3aea">IsSleepingAllowed</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keywordtype">bool</span> flag);</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#aa28fdb95dffac89d20b04bd1a038b4ea">IsAwake</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#ab8059b7b3e3b64aee17b54f68f7dde80">SetActive</a>(<span class="keywordtype">bool</span> flag);</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#ae69b9cb7461ee165b6459ce43d648479">IsActive</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#aff35078e2a221d2d05409674936cb8d2">SetFixedRotation</a>(<span class="keywordtype">bool</span> flag);</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#a6bef51a11a1fec3fddad273b11c14214">IsFixedRotation</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <a class="code" href="classb2_fixture.html">b2Fixture</a>* <a class="code" href="classb2_body.html#a64634da20c6e0ab2d68a3cc9ea15efc3">GetFixtureList</a>();</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="keyword">const</span> <a class="code" href="classb2_fixture.html">b2Fixture</a>* <a class="code" href="classb2_body.html#a64634da20c6e0ab2d68a3cc9ea15efc3">GetFixtureList</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <a class="code" href="structb2_joint_edge.html">b2JointEdge</a>* <a class="code" href="classb2_body.html#a55cf2eb851780599ca5c1f6f25a17e41">GetJointList</a>();</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="keyword">const</span> <a class="code" href="structb2_joint_edge.html">b2JointEdge</a>* <a class="code" href="classb2_body.html#a55cf2eb851780599ca5c1f6f25a17e41">GetJointList</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <a class="code" href="structb2_contact_edge.html">b2ContactEdge</a>* <a class="code" href="classb2_body.html#a16bdbfb266c82a0ef51be351a8928bc5">GetContactList</a>();</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <span class="keyword">const</span> <a class="code" href="structb2_contact_edge.html">b2ContactEdge</a>* <a class="code" href="classb2_body.html#a16bdbfb266c82a0ef51be351a8928bc5">GetContactList</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <a class="code" href="classb2_body.html">b2Body</a>* <a class="code" href="classb2_body.html#ad54182a11d02362b027a0eb072775bdc">GetNext</a>();</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keyword">const</span> <a class="code" href="classb2_body.html">b2Body</a>* <a class="code" href="classb2_body.html#ad54182a11d02362b027a0eb072775bdc">GetNext</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    <span class="keywordtype">void</span>* <a class="code" href="classb2_body.html#a6833f7e2ef1b6ac82641bb6b07ec50d1">GetUserData</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a5553a5ecdfd2d7200ba2405ce6043f52">SetUserData</a>(<span class="keywordtype">void</span>* data);</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <a class="code" href="classb2_world.html">b2World</a>* <a class="code" href="classb2_body.html#abfd9466763b20977f9122d0e162dfeb9">GetWorld</a>();</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keyword">const</span> <a class="code" href="classb2_world.html">b2World</a>* <a class="code" href="classb2_body.html#abfd9466763b20977f9122d0e162dfeb9">GetWorld</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#ac9e482f7d9df92801c24e79a7e751d06">Dump</a>();</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;<span class="preprocessor">#if LIQUIDFUN_EXTERNAL_LANGUAGE_API</span></div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;<span class="preprocessor"></span><span class="keyword">public</span>:</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    float32 GetPositionX()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classb2_body.html#a798da9dc2d47431912d991d152b13711">GetPosition</a>().x; }</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    float32 GetPositionY()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classb2_body.html#a798da9dc2d47431912d991d152b13711">GetPosition</a>().y; }</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a4686f32bbce5723761e9719c706eca11">SetTransform</a>(float32 positionX, float32 positionY, float32 angle);</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;<span class="preprocessor">#endif // LIQUIDFUN_EXTERNAL_LANGUAGE_API</span></div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_world.html">b2World</a>;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_island.html">b2Island</a>;</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_contact_manager.html">b2ContactManager</a>;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_contact_solver.html">b2ContactSolver</a>;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_contact.html">b2Contact</a>;</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_distance_joint.html">b2DistanceJoint</a>;</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_friction_joint.html">b2FrictionJoint</a>;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_gear_joint.html">b2GearJoint</a>;</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_motor_joint.html">b2MotorJoint</a>;</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_mouse_joint.html">b2MouseJoint</a>;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_prismatic_joint.html">b2PrismaticJoint</a>;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_pulley_joint.html">b2PulleyJoint</a>;</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_revolute_joint.html">b2RevoluteJoint</a>;</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_rope_joint.html">b2RopeJoint</a>;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_weld_joint.html">b2WeldJoint</a>;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_wheel_joint.html">b2WheelJoint</a>;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_particle_system.html">b2ParticleSystem</a>;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classb2_particle_group.html">b2ParticleGroup</a>;</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <span class="comment">// m_flags</span></div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <span class="keyword">enum</span></div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;    {</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;        e_islandFlag        = 0x0001,</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;        e_awakeFlag         = 0x0002,</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;        e_autoSleepFlag     = 0x0004,</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        e_bulletFlag        = 0x0008,</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;        e_fixedRotationFlag = 0x0010,</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        e_activeFlag        = 0x0020,</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        e_toiFlag           = 0x0040</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;    };</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <a class="code" href="classb2_body.html">b2Body</a>(<span class="keyword">const</span> <a class="code" href="structb2_body_def.html">b2BodyDef</a>* bd, <a class="code" href="classb2_world.html">b2World</a>* world);</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    ~<a class="code" href="classb2_body.html">b2Body</a>();</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    <span class="keywordtype">void</span> SynchronizeFixtures();</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    <span class="keywordtype">void</span> SynchronizeTransform();</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    <span class="comment">// This is used to prevent connected bodies from colliding.</span></div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    <span class="comment">// It may lie, depending on the collideConnected flag.</span></div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    <span class="keywordtype">bool</span> ShouldCollide(<span class="keyword">const</span> <a class="code" href="classb2_body.html">b2Body</a>* other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <span class="keywordtype">void</span> Advance(float32 t);</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    b2BodyType m_type;</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    uint16 m_flags;</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    int32 m_islandIndex;</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <a class="code" href="structb2_transform.html">b2Transform</a> m_xf;       <span class="comment">// the body origin transform</span></div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    <a class="code" href="structb2_transform.html">b2Transform</a> m_xf0;      <span class="comment">// the previous transform for particle simulation</span></div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    <a class="code" href="structb2_sweep.html">b2Sweep</a> m_sweep;        <span class="comment">// the swept motion for CCD</span></div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> m_linearVelocity;</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    float32 m_angularVelocity;</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    <a class="code" href="structb2_vec2.html">b2Vec2</a> m_force;</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    float32 m_torque;</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    <a class="code" href="classb2_world.html">b2World</a>* m_world;</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    <a class="code" href="classb2_body.html">b2Body</a>* m_prev;</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    <a class="code" href="classb2_body.html">b2Body</a>* m_next;</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    <a class="code" href="classb2_fixture.html">b2Fixture</a>* m_fixtureList;</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    int32 m_fixtureCount;</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    <a class="code" href="structb2_joint_edge.html">b2JointEdge</a>* m_jointList;</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    <a class="code" href="structb2_contact_edge.html">b2ContactEdge</a>* m_contactList;</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    float32 m_mass, m_invMass;</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    <span class="comment">// Rotational inertia about the center of mass.</span></div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    float32 m_I, m_invI;</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    float32 m_linearDamping;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    float32 m_angularDamping;</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    float32 m_gravityScale;</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    float32 m_sleepTime;</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <span class="keywordtype">void</span>* m_userData;</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;};</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;</div>
<div class="line"><a name="l00491"></a><span class="lineno"><a class="line" href="classb2_body.html#aa0d5acad4f0104e709e34e29a4a0c1a4">  491</a></span>&#160;<span class="keyword">inline</span> b2BodyType <a class="code" href="classb2_body.html#aa0d5acad4f0104e709e34e29a4a0c1a4">b2Body::GetType</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    <span class="keywordflow">return</span> m_type;</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;}</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;</div>
<div class="line"><a name="l00496"></a><span class="lineno"><a class="line" href="classb2_body.html#adaaebca750d0bda56a543884adc5f519">  496</a></span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structb2_transform.html">b2Transform</a>&amp; <a class="code" href="classb2_body.html#adaaebca750d0bda56a543884adc5f519">b2Body::GetTransform</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <span class="keywordflow">return</span> m_xf;</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;}</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;</div>
<div class="line"><a name="l00501"></a><span class="lineno"><a class="line" href="classb2_body.html#a798da9dc2d47431912d991d152b13711">  501</a></span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a798da9dc2d47431912d991d152b13711">b2Body::GetPosition</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    <span class="keywordflow">return</span> m_xf.p;</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;}</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;</div>
<div class="line"><a name="l00506"></a><span class="lineno"><a class="line" href="classb2_body.html#a57c4a1946a6dd5a00e28691bc419fdcd">  506</a></span>&#160;<span class="keyword">inline</span> float32 <a class="code" href="classb2_body.html#a57c4a1946a6dd5a00e28691bc419fdcd">b2Body::GetAngle</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    <span class="keywordflow">return</span> m_sweep.<a class="code" href="structb2_sweep.html#afa96bacc91dd3c92ae716a45512332d6">a</a>;</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;}</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;</div>
<div class="line"><a name="l00511"></a><span class="lineno"><a class="line" href="classb2_body.html#a04db0c7b12b315802e58b33884f4f63c">  511</a></span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a04db0c7b12b315802e58b33884f4f63c">b2Body::GetWorldCenter</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    <span class="keywordflow">return</span> m_sweep.<a class="code" href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">c</a>;</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;}</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;</div>
<div class="line"><a name="l00516"></a><span class="lineno"><a class="line" href="classb2_body.html#a27ed7f8a3b36ddfb01069ee8f7106033">  516</a></span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a27ed7f8a3b36ddfb01069ee8f7106033">b2Body::GetLocalCenter</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    <span class="keywordflow">return</span> m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>;</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;}</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;</div>
<div class="line"><a name="l00521"></a><span class="lineno"><a class="line" href="classb2_body.html#a832f3989a44f0d4782c80456832197ad">  521</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a832f3989a44f0d4782c80456832197ad">b2Body::SetLinearVelocity</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; v)</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;{</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    <span class="keywordflow">if</span> (m_type == b2_staticBody)</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    {</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    }</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    <span class="keywordflow">if</span> (b2Dot(v,v) &gt; 0.0f)</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    {</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;    }</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    m_linearVelocity = v;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;}</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;</div>
<div class="line"><a name="l00536"></a><span class="lineno"><a class="line" href="classb2_body.html#a427cf835b5d3327a003ff43cb6107ead">  536</a></span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; <a class="code" href="classb2_body.html#a427cf835b5d3327a003ff43cb6107ead">b2Body::GetLinearVelocity</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    <span class="keywordflow">return</span> m_linearVelocity;</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;}</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;</div>
<div class="line"><a name="l00541"></a><span class="lineno"><a class="line" href="classb2_body.html#a37adc4160b84f73e8552a91cbde3f578">  541</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a37adc4160b84f73e8552a91cbde3f578">b2Body::SetAngularVelocity</a>(float32 w)</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;{</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    <span class="keywordflow">if</span> (m_type == b2_staticBody)</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;    {</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;    }</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;    <span class="keywordflow">if</span> (w * w &gt; 0.0f)</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;    {</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;    }</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    m_angularVelocity = w;</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;}</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;</div>
<div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="classb2_body.html#a158fe4c141168d2c3e65096b209f548c">  556</a></span>&#160;<span class="keyword">inline</span> float32 <a class="code" href="classb2_body.html#a158fe4c141168d2c3e65096b209f548c">b2Body::GetAngularVelocity</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;    <span class="keywordflow">return</span> m_angularVelocity;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;}</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;</div>
<div class="line"><a name="l00561"></a><span class="lineno"><a class="line" href="classb2_body.html#a4f62fea4546d2b9ca64a5f6723bbc71c">  561</a></span>&#160;<span class="keyword">inline</span> float32 <a class="code" href="classb2_body.html#a4f62fea4546d2b9ca64a5f6723bbc71c">b2Body::GetMass</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    <span class="keywordflow">return</span> m_mass;</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;}</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;</div>
<div class="line"><a name="l00566"></a><span class="lineno"><a class="line" href="classb2_body.html#a8c8916caf67c1e618a07d8b6b9253fa8">  566</a></span>&#160;<span class="keyword">inline</span> float32 <a class="code" href="classb2_body.html#a8c8916caf67c1e618a07d8b6b9253fa8">b2Body::GetInertia</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    <span class="keywordflow">return</span> m_I + m_mass * b2Dot(m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>, m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>);</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;}</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;</div>
<div class="line"><a name="l00571"></a><span class="lineno"><a class="line" href="classb2_body.html#ad0a90df7e2617a8572cd476267f95417">  571</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#ad0a90df7e2617a8572cd476267f95417">b2Body::GetMassData</a>(<a class="code" href="structb2_mass_data.html">b2MassData</a>* data)<span class="keyword"> const</span></div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    data-&gt;<a class="code" href="structb2_mass_data.html#aea85d9595a38d2eed05b8d2ea80d97b1">mass</a> = m_mass;</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;    data-&gt;<a class="code" href="structb2_mass_data.html#ad2d06e96e2d79d895df16ae0e5fe0376">I</a> = m_I + m_mass * b2Dot(m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>, m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>);</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;    data-&gt;<a class="code" href="structb2_mass_data.html#a1d59bebc7030c4dded0c2febc57ebdd7">center</a> = m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;}</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;</div>
<div class="line"><a name="l00578"></a><span class="lineno"><a class="line" href="classb2_body.html#a8055b90bccb51383caa8c42fbc96c9c3">  578</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a8055b90bccb51383caa8c42fbc96c9c3">b2Body::GetWorldPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; localPoint)<span class="keyword"> const</span></div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    <span class="keywordflow">return</span> b2Mul(m_xf, localPoint);</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;}</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;</div>
<div class="line"><a name="l00583"></a><span class="lineno"><a class="line" href="classb2_body.html#afd44622669b5e45202c23e4a212895fc">  583</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#afd44622669b5e45202c23e4a212895fc">b2Body::GetWorldVector</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; localVector)<span class="keyword"> const</span></div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;    <span class="keywordflow">return</span> b2Mul(m_xf.q, localVector);</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;}</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;</div>
<div class="line"><a name="l00588"></a><span class="lineno"><a class="line" href="classb2_body.html#a8f9ef0226b7eb989e700fa8898d29fc0">  588</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a8f9ef0226b7eb989e700fa8898d29fc0">b2Body::GetLocalPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; worldPoint)<span class="keyword"> const</span></div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="keywordflow">return</span> b2MulT(m_xf, worldPoint);</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;}</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;</div>
<div class="line"><a name="l00593"></a><span class="lineno"><a class="line" href="classb2_body.html#a93de09565c0c1a9da2601c1847aa22df">  593</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a93de09565c0c1a9da2601c1847aa22df">b2Body::GetLocalVector</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; worldVector)<span class="keyword"> const</span></div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;    <span class="keywordflow">return</span> b2MulT(m_xf.q, worldVector);</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;}</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;</div>
<div class="line"><a name="l00598"></a><span class="lineno"><a class="line" href="classb2_body.html#a4238ae43f5afeb2126b8e8bf765334b5">  598</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a4238ae43f5afeb2126b8e8bf765334b5">b2Body::GetLinearVelocityFromWorldPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; worldPoint)<span class="keyword"> const</span></div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    <span class="keywordflow">return</span> m_linearVelocity + b2Cross(m_angularVelocity, worldPoint - m_sweep.<a class="code" href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">c</a>);</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;}</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;</div>
<div class="line"><a name="l00603"></a><span class="lineno"><a class="line" href="classb2_body.html#a4429e3f380e882def11c52ac893b8e2e">  603</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_vec2.html">b2Vec2</a> <a class="code" href="classb2_body.html#a4429e3f380e882def11c52ac893b8e2e">b2Body::GetLinearVelocityFromLocalPoint</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; localPoint)<span class="keyword"> const</span></div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classb2_body.html#a4238ae43f5afeb2126b8e8bf765334b5">GetLinearVelocityFromWorldPoint</a>(<a class="code" href="classb2_body.html#a8055b90bccb51383caa8c42fbc96c9c3">GetWorldPoint</a>(localPoint));</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;}</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;</div>
<div class="line"><a name="l00608"></a><span class="lineno"><a class="line" href="classb2_body.html#a7283e4821d24aed0fa5b0f7891175183">  608</a></span>&#160;<span class="keyword">inline</span> float32 <a class="code" href="classb2_body.html#a7283e4821d24aed0fa5b0f7891175183">b2Body::GetLinearDamping</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;    <span class="keywordflow">return</span> m_linearDamping;</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;}</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;</div>
<div class="line"><a name="l00613"></a><span class="lineno"><a class="line" href="classb2_body.html#a909f9753ad700f70282a56e00bc182a5">  613</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a909f9753ad700f70282a56e00bc182a5">b2Body::SetLinearDamping</a>(float32 linearDamping)</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;{</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;    m_linearDamping = linearDamping;</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;}</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;</div>
<div class="line"><a name="l00618"></a><span class="lineno"><a class="line" href="classb2_body.html#a5153143f2593802c85e54a21de5464ce">  618</a></span>&#160;<span class="keyword">inline</span> float32 <a class="code" href="classb2_body.html#a5153143f2593802c85e54a21de5464ce">b2Body::GetAngularDamping</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;    <span class="keywordflow">return</span> m_angularDamping;</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;}</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;</div>
<div class="line"><a name="l00623"></a><span class="lineno"><a class="line" href="classb2_body.html#a73a79541b18394fa224d2eae8ad493e8">  623</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a73a79541b18394fa224d2eae8ad493e8">b2Body::SetAngularDamping</a>(float32 angularDamping)</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;{</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;    m_angularDamping = angularDamping;</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;}</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;</div>
<div class="line"><a name="l00628"></a><span class="lineno"><a class="line" href="classb2_body.html#ad8348f06a391d169d6395dfd66762454">  628</a></span>&#160;<span class="keyword">inline</span> float32 <a class="code" href="classb2_body.html#ad8348f06a391d169d6395dfd66762454">b2Body::GetGravityScale</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    <span class="keywordflow">return</span> m_gravityScale;</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;}</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;</div>
<div class="line"><a name="l00633"></a><span class="lineno"><a class="line" href="classb2_body.html#a8e66a570c2aeee93b29d84cae861a612">  633</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a8e66a570c2aeee93b29d84cae861a612">b2Body::SetGravityScale</a>(float32 scale)</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;{</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;    m_gravityScale = scale;</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;}</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;</div>
<div class="line"><a name="l00638"></a><span class="lineno"><a class="line" href="classb2_body.html#a3253af3725b8d6d63d8223bcd2ddab5c">  638</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a3253af3725b8d6d63d8223bcd2ddab5c">b2Body::SetBullet</a>(<span class="keywordtype">bool</span> flag)</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;{</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    <span class="keywordflow">if</span> (flag)</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    {</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;        m_flags |= e_bulletFlag;</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;    }</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;    {</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;        m_flags &amp;= ~e_bulletFlag;</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    }</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;}</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;</div>
<div class="line"><a name="l00650"></a><span class="lineno"><a class="line" href="classb2_body.html#af48509b43c9474b394cf76d733b56882">  650</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#af48509b43c9474b394cf76d733b56882">b2Body::IsBullet</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;    <span class="keywordflow">return</span> (m_flags &amp; e_bulletFlag) == e_bulletFlag;</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;}</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;</div>
<div class="line"><a name="l00655"></a><span class="lineno"><a class="line" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">  655</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">b2Body::SetAwake</a>(<span class="keywordtype">bool</span> flag)</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;{</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;    <span class="keywordflow">if</span> (flag)</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;    {</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;        <span class="keywordflow">if</span> ((m_flags &amp; e_awakeFlag) == 0)</div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;        {</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;            m_flags |= e_awakeFlag;</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;            m_sleepTime = 0.0f;</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;        }</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;    }</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;    {</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        m_flags &amp;= ~e_awakeFlag;</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;        m_sleepTime = 0.0f;</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;        m_linearVelocity.<a class="code" href="structb2_vec2.html#a5c6cbe27cfb29c6dbb29b9a3285b88d0">SetZero</a>();</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;        m_angularVelocity = 0.0f;</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;        m_force.<a class="code" href="structb2_vec2.html#a5c6cbe27cfb29c6dbb29b9a3285b88d0">SetZero</a>();</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;        m_torque = 0.0f;</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;    }</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;}</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;</div>
<div class="line"><a name="l00676"></a><span class="lineno"><a class="line" href="classb2_body.html#aa28fdb95dffac89d20b04bd1a038b4ea">  676</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#aa28fdb95dffac89d20b04bd1a038b4ea">b2Body::IsAwake</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;    <span class="keywordflow">return</span> (m_flags &amp; e_awakeFlag) == e_awakeFlag;</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;}</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;</div>
<div class="line"><a name="l00681"></a><span class="lineno"><a class="line" href="classb2_body.html#ae69b9cb7461ee165b6459ce43d648479">  681</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#ae69b9cb7461ee165b6459ce43d648479">b2Body::IsActive</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160;    <span class="keywordflow">return</span> (m_flags &amp; e_activeFlag) == e_activeFlag;</div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;}</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;</div>
<div class="line"><a name="l00686"></a><span class="lineno"><a class="line" href="classb2_body.html#a6bef51a11a1fec3fddad273b11c14214">  686</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#a6bef51a11a1fec3fddad273b11c14214">b2Body::IsFixedRotation</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;    <span class="keywordflow">return</span> (m_flags &amp; e_fixedRotationFlag) == e_fixedRotationFlag;</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;}</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;</div>
<div class="line"><a name="l00691"></a><span class="lineno"><a class="line" href="classb2_body.html#a229a6de228416203fecbf7a7544c33bb">  691</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a229a6de228416203fecbf7a7544c33bb">b2Body::SetSleepingAllowed</a>(<span class="keywordtype">bool</span> flag)</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;{</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;    <span class="keywordflow">if</span> (flag)</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;    {</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;        m_flags |= e_autoSleepFlag;</div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;    }</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;    {</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;        m_flags &amp;= ~e_autoSleepFlag;</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;    }</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;}</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;</div>
<div class="line"><a name="l00704"></a><span class="lineno"><a class="line" href="classb2_body.html#ac0b0c558008bda8cf7984dbaf2ee3aea">  704</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classb2_body.html#ac0b0c558008bda8cf7984dbaf2ee3aea">b2Body::IsSleepingAllowed</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;    <span class="keywordflow">return</span> (m_flags &amp; e_autoSleepFlag) == e_autoSleepFlag;</div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;}</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;</div>
<div class="line"><a name="l00709"></a><span class="lineno"><a class="line" href="classb2_body.html#a64634da20c6e0ab2d68a3cc9ea15efc3">  709</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classb2_fixture.html">b2Fixture</a>* <a class="code" href="classb2_body.html#a64634da20c6e0ab2d68a3cc9ea15efc3">b2Body::GetFixtureList</a>()</div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;{</div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;    <span class="keywordflow">return</span> m_fixtureList;</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;}</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classb2_fixture.html">b2Fixture</a>* <a class="code" href="classb2_body.html#a64634da20c6e0ab2d68a3cc9ea15efc3">b2Body::GetFixtureList</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;    <span class="keywordflow">return</span> m_fixtureList;</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;}</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;</div>
<div class="line"><a name="l00719"></a><span class="lineno"><a class="line" href="classb2_body.html#a55cf2eb851780599ca5c1f6f25a17e41">  719</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_joint_edge.html">b2JointEdge</a>* <a class="code" href="classb2_body.html#a55cf2eb851780599ca5c1f6f25a17e41">b2Body::GetJointList</a>()</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;{</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;    <span class="keywordflow">return</span> m_jointList;</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;}</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structb2_joint_edge.html">b2JointEdge</a>* <a class="code" href="classb2_body.html#a55cf2eb851780599ca5c1f6f25a17e41">b2Body::GetJointList</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;    <span class="keywordflow">return</span> m_jointList;</div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;}</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;</div>
<div class="line"><a name="l00729"></a><span class="lineno"><a class="line" href="classb2_body.html#a16bdbfb266c82a0ef51be351a8928bc5">  729</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="structb2_contact_edge.html">b2ContactEdge</a>* <a class="code" href="classb2_body.html#a16bdbfb266c82a0ef51be351a8928bc5">b2Body::GetContactList</a>()</div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;{</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;    <span class="keywordflow">return</span> m_contactList;</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;}</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structb2_contact_edge.html">b2ContactEdge</a>* <a class="code" href="classb2_body.html#a16bdbfb266c82a0ef51be351a8928bc5">b2Body::GetContactList</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;    <span class="keywordflow">return</span> m_contactList;</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;}</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;</div>
<div class="line"><a name="l00739"></a><span class="lineno"><a class="line" href="classb2_body.html#ad54182a11d02362b027a0eb072775bdc">  739</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classb2_body.html">b2Body</a>* <a class="code" href="classb2_body.html#ad54182a11d02362b027a0eb072775bdc">b2Body::GetNext</a>()</div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;{</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;    <span class="keywordflow">return</span> m_next;</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;}</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classb2_body.html">b2Body</a>* <a class="code" href="classb2_body.html#ad54182a11d02362b027a0eb072775bdc">b2Body::GetNext</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;    <span class="keywordflow">return</span> m_next;</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;}</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;</div>
<div class="line"><a name="l00749"></a><span class="lineno"><a class="line" href="classb2_body.html#a5553a5ecdfd2d7200ba2405ce6043f52">  749</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a5553a5ecdfd2d7200ba2405ce6043f52">b2Body::SetUserData</a>(<span class="keywordtype">void</span>* data)</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;{</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    m_userData = data;</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;}</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;</div>
<div class="line"><a name="l00754"></a><span class="lineno"><a class="line" href="classb2_body.html#a6833f7e2ef1b6ac82641bb6b07ec50d1">  754</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span>* <a class="code" href="classb2_body.html#a6833f7e2ef1b6ac82641bb6b07ec50d1">b2Body::GetUserData</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;    <span class="keywordflow">return</span> m_userData;</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;}</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;</div>
<div class="line"><a name="l00759"></a><span class="lineno"><a class="line" href="classb2_body.html#a942be8e1cd2bcd06f53c4638c45a9525">  759</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a942be8e1cd2bcd06f53c4638c45a9525">b2Body::ApplyForce</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; force, <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; point, <span class="keywordtype">bool</span> wake)</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;{</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;    <span class="keywordflow">if</span> (m_type != b2_dynamicBody)</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;    {</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;    }</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;    <span class="keywordflow">if</span> (wake &amp;&amp; (m_flags &amp; e_awakeFlag) == 0)</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;    {</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;    }</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;    <span class="comment">// Don&#39;t accumulate a force if the body is sleeping.</span></div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    <span class="keywordflow">if</span> (m_flags &amp; e_awakeFlag)</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    {</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;        m_force += force;</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;        m_torque += b2Cross(point - m_sweep.<a class="code" href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">c</a>, force);</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    }</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;}</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;</div>
<div class="line"><a name="l00779"></a><span class="lineno"><a class="line" href="classb2_body.html#abeba04911f7a2a141169bb06fe98d06a">  779</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#abeba04911f7a2a141169bb06fe98d06a">b2Body::ApplyForceToCenter</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; force, <span class="keywordtype">bool</span> wake)</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;{</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    <span class="keywordflow">if</span> (m_type != b2_dynamicBody)</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;    {</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;    }</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;    <span class="keywordflow">if</span> (wake &amp;&amp; (m_flags &amp; e_awakeFlag) == 0)</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;    {</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;    }</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;    <span class="comment">// Don&#39;t accumulate a force if the body is sleeping</span></div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;    <span class="keywordflow">if</span> (m_flags &amp; e_awakeFlag)</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;    {</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;        m_force += force;</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;    }</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;}</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;</div>
<div class="line"><a name="l00798"></a><span class="lineno"><a class="line" href="classb2_body.html#a54a354447ac3b4cc224c8327a5abc0e8">  798</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a54a354447ac3b4cc224c8327a5abc0e8">b2Body::ApplyTorque</a>(float32 torque, <span class="keywordtype">bool</span> wake)</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;{</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;    <span class="keywordflow">if</span> (m_type != b2_dynamicBody)</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    {</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;    }</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    <span class="keywordflow">if</span> (wake &amp;&amp; (m_flags &amp; e_awakeFlag) == 0)</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;    {</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;    }</div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;    <span class="comment">// Don&#39;t accumulate a force if the body is sleeping</span></div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;    <span class="keywordflow">if</span> (m_flags &amp; e_awakeFlag)</div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;    {</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;        m_torque += torque;</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;    }</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;}</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;</div>
<div class="line"><a name="l00817"></a><span class="lineno"><a class="line" href="classb2_body.html#a7f677e93efb3c4c065087aff317274a3">  817</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a7f677e93efb3c4c065087aff317274a3">b2Body::ApplyLinearImpulse</a>(<span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; impulse, <span class="keyword">const</span> <a class="code" href="structb2_vec2.html">b2Vec2</a>&amp; point, <span class="keywordtype">bool</span> wake)</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;{</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;    <span class="keywordflow">if</span> (m_type != b2_dynamicBody)</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;    {</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;    }</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;    <span class="keywordflow">if</span> (wake &amp;&amp; (m_flags &amp; e_awakeFlag) == 0)</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;    {</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;    }</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;    <span class="comment">// Don&#39;t accumulate velocity if the body is sleeping</span></div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;    <span class="keywordflow">if</span> (m_flags &amp; e_awakeFlag)</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;    {</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;        m_linearVelocity += m_invMass * impulse;</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;        m_angularVelocity += m_invI * b2Cross(point - m_sweep.<a class="code" href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">c</a>, impulse);</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;    }</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;}</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;</div>
<div class="line"><a name="l00837"></a><span class="lineno"><a class="line" href="classb2_body.html#a65384cfad8db2376cdf3fab38cac06e5">  837</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a65384cfad8db2376cdf3fab38cac06e5">b2Body::ApplyAngularImpulse</a>(float32 impulse, <span class="keywordtype">bool</span> wake)</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;{</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;    <span class="keywordflow">if</span> (m_type != b2_dynamicBody)</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;    {</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;    }</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    <span class="keywordflow">if</span> (wake &amp;&amp; (m_flags &amp; e_awakeFlag) == 0)</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;    {</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;        <a class="code" href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">SetAwake</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;    }</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;    <span class="comment">// Don&#39;t accumulate velocity if the body is sleeping</span></div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;    <span class="keywordflow">if</span> (m_flags &amp; e_awakeFlag)</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;    {</div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;        m_angularVelocity += m_invI * impulse;</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;    }</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;}</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> b2Body::SynchronizeTransform()</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;{</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    m_xf.q.<a class="code" href="structb2_rot.html#acde9186de0a4a7397bf8ef714408ad60">Set</a>(m_sweep.<a class="code" href="structb2_sweep.html#afa96bacc91dd3c92ae716a45512332d6">a</a>);</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;    m_xf.p = m_sweep.<a class="code" href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">c</a> - b2Mul(m_xf.q, m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>);</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;}</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> b2Body::Advance(float32 alpha)</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;{</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;    <span class="comment">// Advance to the new safe time. This doesn&#39;t sync the broad-phase.</span></div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;    m_sweep.<a class="code" href="structb2_sweep.html#a35eb9b976ca87c9b8d758bec070c6c06">Advance</a>(alpha);</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;    m_sweep.<a class="code" href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">c</a> = m_sweep.c0;</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;    m_sweep.<a class="code" href="structb2_sweep.html#afa96bacc91dd3c92ae716a45512332d6">a</a> = m_sweep.a0;</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;    m_xf.q.<a class="code" href="structb2_rot.html#acde9186de0a4a7397bf8ef714408ad60">Set</a>(m_sweep.<a class="code" href="structb2_sweep.html#afa96bacc91dd3c92ae716a45512332d6">a</a>);</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;    m_xf.p = m_sweep.<a class="code" href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">c</a> - b2Mul(m_xf.q, m_sweep.<a class="code" href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">localCenter</a>);</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;}</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;</div>
<div class="line"><a name="l00872"></a><span class="lineno"><a class="line" href="classb2_body.html#abfd9466763b20977f9122d0e162dfeb9">  872</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classb2_world.html">b2World</a>* <a class="code" href="classb2_body.html#abfd9466763b20977f9122d0e162dfeb9">b2Body::GetWorld</a>()</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;{</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;    <span class="keywordflow">return</span> m_world;</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;}</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;<span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classb2_world.html">b2World</a>* <a class="code" href="classb2_body.html#abfd9466763b20977f9122d0e162dfeb9">b2Body::GetWorld</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;    <span class="keywordflow">return</span> m_world;</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;}</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;<span class="preprocessor">#if LIQUIDFUN_EXTERNAL_LANGUAGE_API</span></div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;<span class="preprocessor"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> b2BodyDef::SetPosition(float32 positionX, float32 positionY)</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;{</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;    <a class="code" href="structb2_body_def.html#a680cadc09ad6cf4b3366cbf0914c648b">position</a>.<a class="code" href="structb2_vec2.html#a4d61640a645e470a50b451307d8e94c3">Set</a>(positionX, positionY);</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;}</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classb2_body.html#a4686f32bbce5723761e9719c706eca11">b2Body::SetTransform</a>(float32 positionX, float32 positionY, float32 angle)</div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;{</div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;    <a class="code" href="classb2_body.html#a4686f32bbce5723761e9719c706eca11">SetTransform</a>(<a class="code" href="structb2_vec2.html">b2Vec2</a>(positionX, positionY), angle);</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;}</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;<span class="preprocessor">#endif // LIQUIDFUN_EXTERNAL_LANGUAGE_API</span></div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="structb2_body_def_html_a89cc3ad1873908042b002147b3861381"><div class="ttname"><a href="structb2_body_def.html#a89cc3ad1873908042b002147b3861381">b2BodyDef::type</a></div><div class="ttdeci">b2BodyType type</div><div class="ttdef"><b>Definition:</b> b2Body.h:80</div></div>
<div class="ttc" id="structb2_transform_html"><div class="ttname"><a href="structb2_transform.html">b2Transform</a></div><div class="ttdef"><b>Definition:</b> b2Math.h:411</div></div>
<div class="ttc" id="classb2_body_html_a109d8567c6ae84c61fce2919fb209c63"><div class="ttname"><a href="classb2_body.html#a109d8567c6ae84c61fce2919fb209c63">b2Body::ResetMassData</a></div><div class="ttdeci">void ResetMassData()</div><div class="ttdef"><b>Definition:</b> b2Body.cpp:287</div></div>
<div class="ttc" id="classb2_body_html_a55cf2eb851780599ca5c1f6f25a17e41"><div class="ttname"><a href="classb2_body.html#a55cf2eb851780599ca5c1f6f25a17e41">b2Body::GetJointList</a></div><div class="ttdeci">b2JointEdge * GetJointList()</div><div class="ttdoc">Get the list of all joints attached to this body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:719</div></div>
<div class="ttc" id="classb2_body_html_a8c8916caf67c1e618a07d8b6b9253fa8"><div class="ttname"><a href="classb2_body.html#a8c8916caf67c1e618a07d8b6b9253fa8">b2Body::GetInertia</a></div><div class="ttdeci">float32 GetInertia() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:566</div></div>
<div class="ttc" id="classb2_body_html_a5153143f2593802c85e54a21de5464ce"><div class="ttname"><a href="classb2_body.html#a5153143f2593802c85e54a21de5464ce">b2Body::GetAngularDamping</a></div><div class="ttdeci">float32 GetAngularDamping() const </div><div class="ttdoc">Get the angular damping of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:618</div></div>
<div class="ttc" id="classb2_body_html_a57c4a1946a6dd5a00e28691bc419fdcd"><div class="ttname"><a href="classb2_body.html#a57c4a1946a6dd5a00e28691bc419fdcd">b2Body::GetAngle</a></div><div class="ttdeci">float32 GetAngle() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:506</div></div>
<div class="ttc" id="classb2_body_html_ab8059b7b3e3b64aee17b54f68f7dde80"><div class="ttname"><a href="classb2_body.html#ab8059b7b3e3b64aee17b54f68f7dde80">b2Body::SetActive</a></div><div class="ttdeci">void SetActive(bool flag)</div><div class="ttdef"><b>Definition:</b> b2Body.cpp:461</div></div>
<div class="ttc" id="classb2_rope_joint_html"><div class="ttname"><a href="classb2_rope_joint.html">b2RopeJoint</a></div><div class="ttdef"><b>Definition:</b> b2RopeJoint.h:58</div></div>
<div class="ttc" id="structb2_body_def_html_adf6f3e9a9e124e080c68bc0edeb170df"><div class="ttname"><a href="structb2_body_def.html#adf6f3e9a9e124e080c68bc0edeb170df">b2BodyDef::active</a></div><div class="ttdeci">bool active</div><div class="ttdoc">Does this body start out active? </div><div class="ttdef"><b>Definition:</b> b2Body.h:122</div></div>
<div class="ttc" id="classb2_body_html_a16bdbfb266c82a0ef51be351a8928bc5"><div class="ttname"><a href="classb2_body.html#a16bdbfb266c82a0ef51be351a8928bc5">b2Body::GetContactList</a></div><div class="ttdeci">b2ContactEdge * GetContactList()</div><div class="ttdef"><b>Definition:</b> b2Body.h:729</div></div>
<div class="ttc" id="classb2_body_html_a158fe4c141168d2c3e65096b209f548c"><div class="ttname"><a href="classb2_body.html#a158fe4c141168d2c3e65096b209f548c">b2Body::GetAngularVelocity</a></div><div class="ttdeci">float32 GetAngularVelocity() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:556</div></div>
<div class="ttc" id="structb2_body_def_html_a01b8dc8ad9f0962efef9e4a8e836feb6"><div class="ttname"><a href="structb2_body_def.html#a01b8dc8ad9f0962efef9e4a8e836feb6">b2BodyDef::angularDamping</a></div><div class="ttdeci">float32 angularDamping</div><div class="ttdef"><b>Definition:</b> b2Body.h:103</div></div>
<div class="ttc" id="classb2_body_html_ad8348f06a391d169d6395dfd66762454"><div class="ttname"><a href="classb2_body.html#ad8348f06a391d169d6395dfd66762454">b2Body::GetGravityScale</a></div><div class="ttdeci">float32 GetGravityScale() const </div><div class="ttdoc">Get the gravity scale of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:628</div></div>
<div class="ttc" id="classb2_body_html_a8e66a570c2aeee93b29d84cae861a612"><div class="ttname"><a href="classb2_body.html#a8e66a570c2aeee93b29d84cae861a612">b2Body::SetGravityScale</a></div><div class="ttdeci">void SetGravityScale(float32 scale)</div><div class="ttdoc">Set the gravity scale of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:633</div></div>
<div class="ttc" id="classb2_body_html_ad0a90df7e2617a8572cd476267f95417"><div class="ttname"><a href="classb2_body.html#ad0a90df7e2617a8572cd476267f95417">b2Body::GetMassData</a></div><div class="ttdeci">void GetMassData(b2MassData *data) const </div><div class="ttdef"><b>Definition:</b> b2Body.h:571</div></div>
<div class="ttc" id="classb2_body_html_ac72ed3df52a26c33db82252ab57399af"><div class="ttname"><a href="classb2_body.html#ac72ed3df52a26c33db82252ab57399af">b2Body::SetAwake</a></div><div class="ttdeci">void SetAwake(bool flag)</div><div class="ttdef"><b>Definition:</b> b2Body.h:655</div></div>
<div class="ttc" id="classb2_motor_joint_html"><div class="ttname"><a href="classb2_motor_joint.html">b2MotorJoint</a></div><div class="ttdef"><b>Definition:</b> b2MotorJoint.h:59</div></div>
<div class="ttc" id="classb2_body_html_aa0d5acad4f0104e709e34e29a4a0c1a4"><div class="ttname"><a href="classb2_body.html#aa0d5acad4f0104e709e34e29a4a0c1a4">b2Body::GetType</a></div><div class="ttdeci">b2BodyType GetType() const </div><div class="ttdoc">Get the type of this body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:491</div></div>
<div class="ttc" id="classb2_body_html_afd44622669b5e45202c23e4a212895fc"><div class="ttname"><a href="classb2_body.html#afd44622669b5e45202c23e4a212895fc">b2Body::GetWorldVector</a></div><div class="ttdeci">b2Vec2 GetWorldVector(const b2Vec2 &amp;localVector) const </div><div class="ttdef"><b>Definition:</b> b2Body.h:583</div></div>
<div class="ttc" id="classb2_body_html_a7283e4821d24aed0fa5b0f7891175183"><div class="ttname"><a href="classb2_body.html#a7283e4821d24aed0fa5b0f7891175183">b2Body::GetLinearDamping</a></div><div class="ttdeci">float32 GetLinearDamping() const </div><div class="ttdoc">Get the linear damping of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:608</div></div>
<div class="ttc" id="structb2_mass_data_html_ad2d06e96e2d79d895df16ae0e5fe0376"><div class="ttname"><a href="structb2_mass_data.html#ad2d06e96e2d79d895df16ae0e5fe0376">b2MassData::I</a></div><div class="ttdeci">float32 I</div><div class="ttdoc">The rotational inertia of the shape about the local origin. </div><div class="ttdef"><b>Definition:</b> b2Shape.h:37</div></div>
<div class="ttc" id="structb2_body_def_html_a273a51c57440a8884de5939d76b6e3ea"><div class="ttname"><a href="structb2_body_def.html#a273a51c57440a8884de5939d76b6e3ea">b2BodyDef::fixedRotation</a></div><div class="ttdeci">bool fixedRotation</div><div class="ttdoc">Should this body be prevented from rotating? Useful for characters. </div><div class="ttdef"><b>Definition:</b> b2Body.h:113</div></div>
<div class="ttc" id="classb2_body_html_a4686f32bbce5723761e9719c706eca11"><div class="ttname"><a href="classb2_body.html#a4686f32bbce5723761e9719c706eca11">b2Body::SetTransform</a></div><div class="ttdeci">void SetTransform(const b2Vec2 &amp;position, float32 angle)</div><div class="ttdef"><b>Definition:</b> b2Body.cpp:423</div></div>
<div class="ttc" id="classb2_body_html_a3253af3725b8d6d63d8223bcd2ddab5c"><div class="ttname"><a href="classb2_body.html#a3253af3725b8d6d63d8223bcd2ddab5c">b2Body::SetBullet</a></div><div class="ttdeci">void SetBullet(bool flag)</div><div class="ttdoc">Should this body be treated like a bullet for continuous collision detection? </div><div class="ttdef"><b>Definition:</b> b2Body.h:638</div></div>
<div class="ttc" id="structb2_body_def_html"><div class="ttname"><a href="structb2_body_def.html">b2BodyDef</a></div><div class="ttdef"><b>Definition:</b> b2Body.h:52</div></div>
<div class="ttc" id="classb2_body_html_a73a79541b18394fa224d2eae8ad493e8"><div class="ttname"><a href="classb2_body.html#a73a79541b18394fa224d2eae8ad493e8">b2Body::SetAngularDamping</a></div><div class="ttdeci">void SetAngularDamping(float32 angularDamping)</div><div class="ttdoc">Set the angular damping of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:623</div></div>
<div class="ttc" id="classb2_body_html_ad54182a11d02362b027a0eb072775bdc"><div class="ttname"><a href="classb2_body.html#ad54182a11d02362b027a0eb072775bdc">b2Body::GetNext</a></div><div class="ttdeci">b2Body * GetNext()</div><div class="ttdoc">Get the next body in the world&#39;s body list. </div><div class="ttdef"><b>Definition:</b> b2Body.h:739</div></div>
<div class="ttc" id="structb2_body_def_html_ae457dd1d39be09945eace6061121be29"><div class="ttname"><a href="structb2_body_def.html#ae457dd1d39be09945eace6061121be29">b2BodyDef::userData</a></div><div class="ttdeci">void * userData</div><div class="ttdoc">Use this to store application specific body data. </div><div class="ttdef"><b>Definition:</b> b2Body.h:125</div></div>
<div class="ttc" id="structb2_body_def_html_a680cadc09ad6cf4b3366cbf0914c648b"><div class="ttname"><a href="structb2_body_def.html#a680cadc09ad6cf4b3366cbf0914c648b">b2BodyDef::position</a></div><div class="ttdeci">b2Vec2 position</div><div class="ttdef"><b>Definition:</b> b2Body.h:84</div></div>
<div class="ttc" id="classb2_body_html_a427cf835b5d3327a003ff43cb6107ead"><div class="ttname"><a href="classb2_body.html#a427cf835b5d3327a003ff43cb6107ead">b2Body::GetLinearVelocity</a></div><div class="ttdeci">const b2Vec2 &amp; GetLinearVelocity() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:536</div></div>
<div class="ttc" id="structb2_body_def_html_a7c0047c9a98a1d20614eeddcdbce7586"><div class="ttname"><a href="structb2_body_def.html#a7c0047c9a98a1d20614eeddcdbce7586">b2BodyDef::bullet</a></div><div class="ttdeci">bool bullet</div><div class="ttdef"><b>Definition:</b> b2Body.h:119</div></div>
<div class="ttc" id="classb2_body_html_a4429e3f380e882def11c52ac893b8e2e"><div class="ttname"><a href="classb2_body.html#a4429e3f380e882def11c52ac893b8e2e">b2Body::GetLinearVelocityFromLocalPoint</a></div><div class="ttdeci">b2Vec2 GetLinearVelocityFromLocalPoint(const b2Vec2 &amp;localPoint) const </div><div class="ttdef"><b>Definition:</b> b2Body.h:603</div></div>
<div class="ttc" id="classb2_world_html"><div class="ttname"><a href="classb2_world.html">b2World</a></div><div class="ttdef"><b>Definition:</b> b2World.h:44</div></div>
<div class="ttc" id="classb2_particle_system_html"><div class="ttname"><a href="classb2_particle_system.html">b2ParticleSystem</a></div><div class="ttdef"><b>Definition:</b> b2ParticleSystem.h:281</div></div>
<div class="ttc" id="classb2_body_html_a65384cfad8db2376cdf3fab38cac06e5"><div class="ttname"><a href="classb2_body.html#a65384cfad8db2376cdf3fab38cac06e5">b2Body::ApplyAngularImpulse</a></div><div class="ttdeci">void ApplyAngularImpulse(float32 impulse, bool wake)</div><div class="ttdef"><b>Definition:</b> b2Body.h:837</div></div>
<div class="ttc" id="structb2_body_def_html_a728f6df3be7dedb331455105e3659d46"><div class="ttname"><a href="structb2_body_def.html#a728f6df3be7dedb331455105e3659d46">b2BodyDef::linearDamping</a></div><div class="ttdeci">float32 linearDamping</div><div class="ttdef"><b>Definition:</b> b2Body.h:98</div></div>
<div class="ttc" id="structb2_sweep_html"><div class="ttname"><a href="structb2_sweep.html">b2Sweep</a></div><div class="ttdef"><b>Definition:</b> b2Math.h:455</div></div>
<div class="ttc" id="classb2_body_html_a832f3989a44f0d4782c80456832197ad"><div class="ttname"><a href="classb2_body.html#a832f3989a44f0d4782c80456832197ad">b2Body::SetLinearVelocity</a></div><div class="ttdeci">void SetLinearVelocity(const b2Vec2 &amp;v)</div><div class="ttdef"><b>Definition:</b> b2Body.h:521</div></div>
<div class="ttc" id="classb2_joint_html"><div class="ttname"><a href="classb2_joint.html">b2Joint</a></div><div class="ttdef"><b>Definition:</b> b2Joint.h:103</div></div>
<div class="ttc" id="structb2_mass_data_html"><div class="ttname"><a href="structb2_mass_data.html">b2MassData</a></div><div class="ttdoc">This holds the mass data computed for a shape. </div><div class="ttdef"><b>Definition:</b> b2Shape.h:28</div></div>
<div class="ttc" id="classb2_body_html_a5553a5ecdfd2d7200ba2405ce6043f52"><div class="ttname"><a href="classb2_body.html#a5553a5ecdfd2d7200ba2405ce6043f52">b2Body::SetUserData</a></div><div class="ttdeci">void SetUserData(void *data)</div><div class="ttdoc">Set the user data. Use this to store your application specific data. </div><div class="ttdef"><b>Definition:</b> b2Body.h:749</div></div>
<div class="ttc" id="classb2_shape_html"><div class="ttname"><a href="classb2_shape.html">b2Shape</a></div><div class="ttdef"><b>Definition:</b> b2Shape.h:43</div></div>
<div class="ttc" id="classb2_body_html_a6bef51a11a1fec3fddad273b11c14214"><div class="ttname"><a href="classb2_body.html#a6bef51a11a1fec3fddad273b11c14214">b2Body::IsFixedRotation</a></div><div class="ttdeci">bool IsFixedRotation() const </div><div class="ttdoc">Does this body have fixed rotation? </div><div class="ttdef"><b>Definition:</b> b2Body.h:686</div></div>
<div class="ttc" id="classb2_body_html_a58a641fedf8a81e1e26d09ec00a22fe2"><div class="ttname"><a href="classb2_body.html#a58a641fedf8a81e1e26d09ec00a22fe2">b2Body::SetMassData</a></div><div class="ttdeci">void SetMassData(const b2MassData *data)</div><div class="ttdef"><b>Definition:</b> b2Body.cpp:359</div></div>
<div class="ttc" id="classb2_body_html_a93de09565c0c1a9da2601c1847aa22df"><div class="ttname"><a href="classb2_body.html#a93de09565c0c1a9da2601c1847aa22df">b2Body::GetLocalVector</a></div><div class="ttdeci">b2Vec2 GetLocalVector(const b2Vec2 &amp;worldVector) const </div><div class="ttdef"><b>Definition:</b> b2Body.h:593</div></div>
<div class="ttc" id="structb2_sweep_html_afa96bacc91dd3c92ae716a45512332d6"><div class="ttname"><a href="structb2_sweep.html#afa96bacc91dd3c92ae716a45512332d6">b2Sweep::a</a></div><div class="ttdeci">float32 a</div><div class="ttdoc">world angles </div><div class="ttdef"><b>Definition:</b> b2Math.h:470</div></div>
<div class="ttc" id="classb2_prismatic_joint_html"><div class="ttname"><a href="classb2_prismatic_joint.html">b2PrismaticJoint</a></div><div class="ttdef"><b>Definition:</b> b2PrismaticJoint.h:86</div></div>
<div class="ttc" id="classb2_weld_joint_html"><div class="ttname"><a href="classb2_weld_joint.html">b2WeldJoint</a></div><div class="ttdef"><b>Definition:</b> b2WeldJoint.h:62</div></div>
<div class="ttc" id="classb2_body_html_a856d1df86b7bded91f02d8cfcaea1c2f"><div class="ttname"><a href="classb2_body.html#a856d1df86b7bded91f02d8cfcaea1c2f">b2Body::DestroyFixture</a></div><div class="ttdeci">void DestroyFixture(b2Fixture *fixture)</div><div class="ttdef"><b>Definition:</b> b2Body.cpp:216</div></div>
<div class="ttc" id="classb2_mouse_joint_html"><div class="ttname"><a href="classb2_mouse_joint.html">b2MouseJoint</a></div><div class="ttdef"><b>Definition:</b> b2MouseJoint.h:60</div></div>
<div class="ttc" id="classb2_body_html_aa4892301e9b9d62ede5e93dad1743894"><div class="ttname"><a href="classb2_body.html#aa4892301e9b9d62ede5e93dad1743894">b2Body::CreateFixture</a></div><div class="ttdeci">b2Fixture * CreateFixture(const b2FixtureDef *def)</div><div class="ttdef"><b>Definition:</b> b2Body.cpp:168</div></div>
<div class="ttc" id="classb2_body_html_a4f62fea4546d2b9ca64a5f6723bbc71c"><div class="ttname"><a href="classb2_body.html#a4f62fea4546d2b9ca64a5f6723bbc71c">b2Body::GetMass</a></div><div class="ttdeci">float32 GetMass() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:561</div></div>
<div class="ttc" id="structb2_body_def_html_aadea3fa173ed1014739ec8b023de4336"><div class="ttname"><a href="structb2_body_def.html#aadea3fa173ed1014739ec8b023de4336">b2BodyDef::gravityScale</a></div><div class="ttdeci">float32 gravityScale</div><div class="ttdoc">Scale the gravity applied to this body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:128</div></div>
<div class="ttc" id="classb2_body_html_ae69b9cb7461ee165b6459ce43d648479"><div class="ttname"><a href="classb2_body.html#ae69b9cb7461ee165b6459ce43d648479">b2Body::IsActive</a></div><div class="ttdeci">bool IsActive() const </div><div class="ttdoc">Get the active state of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:681</div></div>
<div class="ttc" id="structb2_vec2_html_a4d61640a645e470a50b451307d8e94c3"><div class="ttname"><a href="structb2_vec2.html#a4d61640a645e470a50b451307d8e94c3">b2Vec2::Set</a></div><div class="ttdeci">void Set(float32 x_, float32 y_)</div><div class="ttdoc">Set this vector to some specified coordinates. </div><div class="ttdef"><b>Definition:</b> b2Math.h:68</div></div>
<div class="ttc" id="structb2_vec2_html_a5c6cbe27cfb29c6dbb29b9a3285b88d0"><div class="ttname"><a href="structb2_vec2.html#a5c6cbe27cfb29c6dbb29b9a3285b88d0">b2Vec2::SetZero</a></div><div class="ttdeci">void SetZero()</div><div class="ttdoc">Set this vector to all zeros. </div><div class="ttdef"><b>Definition:</b> b2Math.h:65</div></div>
<div class="ttc" id="classb2_body_html_a34ff1c84b10b74eb990749a025a1b1ad"><div class="ttname"><a href="classb2_body.html#a34ff1c84b10b74eb990749a025a1b1ad">b2Body::SetType</a></div><div class="ttdeci">void SetType(b2BodyType type)</div><div class="ttdoc">Set the type of this body. This may alter the mass and velocity. </div><div class="ttdef"><b>Definition:</b> b2Body.cpp:115</div></div>
<div class="ttc" id="structb2_contact_edge_html"><div class="ttname"><a href="structb2_contact_edge.html">b2ContactEdge</a></div><div class="ttdef"><b>Definition:</b> b2Contact.h:66</div></div>
<div class="ttc" id="classb2_body_html_af48509b43c9474b394cf76d733b56882"><div class="ttname"><a href="classb2_body.html#af48509b43c9474b394cf76d733b56882">b2Body::IsBullet</a></div><div class="ttdeci">bool IsBullet() const </div><div class="ttdoc">Is this body treated like a bullet for continuous collision detection? </div><div class="ttdef"><b>Definition:</b> b2Body.h:650</div></div>
<div class="ttc" id="structb2_fixture_def_html"><div class="ttname"><a href="structb2_fixture_def.html">b2FixtureDef</a></div><div class="ttdef"><b>Definition:</b> b2Fixture.h:57</div></div>
<div class="ttc" id="classb2_body_html_abeba04911f7a2a141169bb06fe98d06a"><div class="ttname"><a href="classb2_body.html#abeba04911f7a2a141169bb06fe98d06a">b2Body::ApplyForceToCenter</a></div><div class="ttdeci">void ApplyForceToCenter(const b2Vec2 &amp;force, bool wake)</div><div class="ttdef"><b>Definition:</b> b2Body.h:779</div></div>
<div class="ttc" id="classb2_gear_joint_html"><div class="ttname"><a href="classb2_gear_joint.html">b2GearJoint</a></div><div class="ttdef"><b>Definition:</b> b2GearJoint.h:56</div></div>
<div class="ttc" id="classb2_body_html_a64634da20c6e0ab2d68a3cc9ea15efc3"><div class="ttname"><a href="classb2_body.html#a64634da20c6e0ab2d68a3cc9ea15efc3">b2Body::GetFixtureList</a></div><div class="ttdeci">b2Fixture * GetFixtureList()</div><div class="ttdoc">Get the list of all fixtures attached to this body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:709</div></div>
<div class="ttc" id="classb2_friction_joint_html"><div class="ttname"><a href="classb2_friction_joint.html">b2FrictionJoint</a></div><div class="ttdef"><b>Definition:</b> b2FrictionJoint.h:55</div></div>
<div class="ttc" id="classb2_particle_group_html"><div class="ttname"><a href="classb2_particle_group.html">b2ParticleGroup</a></div><div class="ttdoc">A group of particles. b2ParticleGroup::CreateParticleGroup creates these. </div><div class="ttdef"><b>Definition:</b> b2ParticleGroup.h:172</div></div>
<div class="ttc" id="classb2_body_html_aff35078e2a221d2d05409674936cb8d2"><div class="ttname"><a href="classb2_body.html#aff35078e2a221d2d05409674936cb8d2">b2Body::SetFixedRotation</a></div><div class="ttdeci">void SetFixedRotation(bool flag)</div><div class="ttdef"><b>Definition:</b> b2Body.cpp:506</div></div>
<div class="ttc" id="structb2_body_def_html_a17a8102638aac41e7ab94278651a45bd"><div class="ttname"><a href="structb2_body_def.html#a17a8102638aac41e7ab94278651a45bd">b2BodyDef::awake</a></div><div class="ttdeci">bool awake</div><div class="ttdoc">Is this body initially awake or sleeping? </div><div class="ttdef"><b>Definition:</b> b2Body.h:110</div></div>
<div class="ttc" id="structb2_mass_data_html_aea85d9595a38d2eed05b8d2ea80d97b1"><div class="ttname"><a href="structb2_mass_data.html#aea85d9595a38d2eed05b8d2ea80d97b1">b2MassData::mass</a></div><div class="ttdeci">float32 mass</div><div class="ttdoc">The mass of the shape, usually in kilograms. </div><div class="ttdef"><b>Definition:</b> b2Shape.h:31</div></div>
<div class="ttc" id="classb2_body_html_ac0b0c558008bda8cf7984dbaf2ee3aea"><div class="ttname"><a href="classb2_body.html#ac0b0c558008bda8cf7984dbaf2ee3aea">b2Body::IsSleepingAllowed</a></div><div class="ttdeci">bool IsSleepingAllowed() const </div><div class="ttdoc">Is this body allowed to sleep. </div><div class="ttdef"><b>Definition:</b> b2Body.h:704</div></div>
<div class="ttc" id="structb2_mass_data_html_a1d59bebc7030c4dded0c2febc57ebdd7"><div class="ttname"><a href="structb2_mass_data.html#a1d59bebc7030c4dded0c2febc57ebdd7">b2MassData::center</a></div><div class="ttdeci">b2Vec2 center</div><div class="ttdoc">The position of the shape&#39;s centroid relative to the shape&#39;s origin. </div><div class="ttdef"><b>Definition:</b> b2Shape.h:34</div></div>
<div class="ttc" id="structb2_sweep_html_a1b5402e01b92cc82473389fc6f0375c3"><div class="ttname"><a href="structb2_sweep.html#a1b5402e01b92cc82473389fc6f0375c3">b2Sweep::c</a></div><div class="ttdeci">b2Vec2 c</div><div class="ttdoc">center world positions </div><div class="ttdef"><b>Definition:</b> b2Math.h:469</div></div>
<div class="ttc" id="classb2_body_html_a6833f7e2ef1b6ac82641bb6b07ec50d1"><div class="ttname"><a href="classb2_body.html#a6833f7e2ef1b6ac82641bb6b07ec50d1">b2Body::GetUserData</a></div><div class="ttdeci">void * GetUserData() const </div><div class="ttdoc">Get the user data pointer that was provided in the body definition. </div><div class="ttdef"><b>Definition:</b> b2Body.h:754</div></div>
<div class="ttc" id="classb2_body_html_abfd9466763b20977f9122d0e162dfeb9"><div class="ttname"><a href="classb2_body.html#abfd9466763b20977f9122d0e162dfeb9">b2Body::GetWorld</a></div><div class="ttdeci">b2World * GetWorld()</div><div class="ttdoc">Get the parent world of this body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:872</div></div>
<div class="ttc" id="structb2_sweep_html_a4bcc302cf78771896d6256fc53f2f8be"><div class="ttname"><a href="structb2_sweep.html#a4bcc302cf78771896d6256fc53f2f8be">b2Sweep::localCenter</a></div><div class="ttdeci">b2Vec2 localCenter</div><div class="ttdoc">local center of mass position </div><div class="ttdef"><b>Definition:</b> b2Math.h:468</div></div>
<div class="ttc" id="classb2_distance_joint_html"><div class="ttname"><a href="classb2_distance_joint.html">b2DistanceJoint</a></div><div class="ttdef"><b>Definition:</b> b2DistanceJoint.h:67</div></div>
<div class="ttc" id="structb2_body_def_html_a87bee47596b3b3eced0d9dd1f4c18fee"><div class="ttname"><a href="structb2_body_def.html#a87bee47596b3b3eced0d9dd1f4c18fee">b2BodyDef::b2BodyDef</a></div><div class="ttdeci">b2BodyDef()</div><div class="ttdoc">This constructor sets the body definition default values. </div><div class="ttdef"><b>Definition:</b> b2Body.h:55</div></div>
<div class="ttc" id="classb2_body_html_a7f677e93efb3c4c065087aff317274a3"><div class="ttname"><a href="classb2_body.html#a7f677e93efb3c4c065087aff317274a3">b2Body::ApplyLinearImpulse</a></div><div class="ttdeci">void ApplyLinearImpulse(const b2Vec2 &amp;impulse, const b2Vec2 &amp;point, bool wake)</div><div class="ttdef"><b>Definition:</b> b2Body.h:817</div></div>
<div class="ttc" id="classb2_body_html_a909f9753ad700f70282a56e00bc182a5"><div class="ttname"><a href="classb2_body.html#a909f9753ad700f70282a56e00bc182a5">b2Body::SetLinearDamping</a></div><div class="ttdeci">void SetLinearDamping(float32 linearDamping)</div><div class="ttdoc">Set the linear damping of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:613</div></div>
<div class="ttc" id="classb2_body_html_a8055b90bccb51383caa8c42fbc96c9c3"><div class="ttname"><a href="classb2_body.html#a8055b90bccb51383caa8c42fbc96c9c3">b2Body::GetWorldPoint</a></div><div class="ttdeci">b2Vec2 GetWorldPoint(const b2Vec2 &amp;localPoint) const </div><div class="ttdef"><b>Definition:</b> b2Body.h:578</div></div>
<div class="ttc" id="structb2_body_def_html_a564b16f4f8e9fcb5dda397e64aa9be6f"><div class="ttname"><a href="structb2_body_def.html#a564b16f4f8e9fcb5dda397e64aa9be6f">b2BodyDef::angle</a></div><div class="ttdeci">float32 angle</div><div class="ttdoc">The world angle of the body in radians. </div><div class="ttdef"><b>Definition:</b> b2Body.h:87</div></div>
<div class="ttc" id="structb2_body_def_html_a25fa5aa78d93159c344241af95bec2bf"><div class="ttname"><a href="structb2_body_def.html#a25fa5aa78d93159c344241af95bec2bf">b2BodyDef::linearVelocity</a></div><div class="ttdeci">b2Vec2 linearVelocity</div><div class="ttdoc">The linear velocity of the body&#39;s origin in world co-ordinates. </div><div class="ttdef"><b>Definition:</b> b2Body.h:90</div></div>
<div class="ttc" id="classb2_revolute_joint_html"><div class="ttname"><a href="classb2_revolute_joint.html">b2RevoluteJoint</a></div><div class="ttdef"><b>Definition:</b> b2RevoluteJoint.h:90</div></div>
<div class="ttc" id="classb2_body_html_a229a6de228416203fecbf7a7544c33bb"><div class="ttname"><a href="classb2_body.html#a229a6de228416203fecbf7a7544c33bb">b2Body::SetSleepingAllowed</a></div><div class="ttdeci">void SetSleepingAllowed(bool flag)</div><div class="ttdef"><b>Definition:</b> b2Body.h:691</div></div>
<div class="ttc" id="structb2_joint_edge_html"><div class="ttname"><a href="structb2_joint_edge.html">b2JointEdge</a></div><div class="ttdef"><b>Definition:</b> b2Joint.h:65</div></div>
<div class="ttc" id="structb2_body_def_html_add7809f7a29656b8c4b643ad8c2f34a9"><div class="ttname"><a href="structb2_body_def.html#add7809f7a29656b8c4b643ad8c2f34a9">b2BodyDef::angularVelocity</a></div><div class="ttdeci">float32 angularVelocity</div><div class="ttdoc">The angular velocity of the body. </div><div class="ttdef"><b>Definition:</b> b2Body.h:93</div></div>
<div class="ttc" id="classb2_body_html"><div class="ttname"><a href="classb2_body.html">b2Body</a></div><div class="ttdoc">A rigid body. These are created via b2World::CreateBody. </div><div class="ttdef"><b>Definition:</b> b2Body.h:132</div></div>
<div class="ttc" id="classb2_island_html"><div class="ttname"><a href="classb2_island.html">b2Island</a></div><div class="ttdoc">This is an internal class. </div><div class="ttdef"><b>Definition:</b> b2Island.h:34</div></div>
<div class="ttc" id="classb2_body_html_aa28fdb95dffac89d20b04bd1a038b4ea"><div class="ttname"><a href="classb2_body.html#aa28fdb95dffac89d20b04bd1a038b4ea">b2Body::IsAwake</a></div><div class="ttdeci">bool IsAwake() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:676</div></div>
<div class="ttc" id="classb2_body_html_adaaebca750d0bda56a543884adc5f519"><div class="ttname"><a href="classb2_body.html#adaaebca750d0bda56a543884adc5f519">b2Body::GetTransform</a></div><div class="ttdeci">const b2Transform &amp; GetTransform() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:496</div></div>
<div class="ttc" id="classb2_body_html_a27ed7f8a3b36ddfb01069ee8f7106033"><div class="ttname"><a href="classb2_body.html#a27ed7f8a3b36ddfb01069ee8f7106033">b2Body::GetLocalCenter</a></div><div class="ttdeci">const b2Vec2 &amp; GetLocalCenter() const </div><div class="ttdoc">Get the local position of the center of mass. </div><div class="ttdef"><b>Definition:</b> b2Body.h:516</div></div>
<div class="ttc" id="classb2_body_html_a942be8e1cd2bcd06f53c4638c45a9525"><div class="ttname"><a href="classb2_body.html#a942be8e1cd2bcd06f53c4638c45a9525">b2Body::ApplyForce</a></div><div class="ttdeci">void ApplyForce(const b2Vec2 &amp;force, const b2Vec2 &amp;point, bool wake)</div><div class="ttdef"><b>Definition:</b> b2Body.h:759</div></div>
<div class="ttc" id="classb2_body_html_a798da9dc2d47431912d991d152b13711"><div class="ttname"><a href="classb2_body.html#a798da9dc2d47431912d991d152b13711">b2Body::GetPosition</a></div><div class="ttdeci">const b2Vec2 &amp; GetPosition() const </div><div class="ttdef"><b>Definition:</b> b2Body.h:501</div></div>
<div class="ttc" id="classb2_body_html_a54a354447ac3b4cc224c8327a5abc0e8"><div class="ttname"><a href="classb2_body.html#a54a354447ac3b4cc224c8327a5abc0e8">b2Body::ApplyTorque</a></div><div class="ttdeci">void ApplyTorque(float32 torque, bool wake)</div><div class="ttdef"><b>Definition:</b> b2Body.h:798</div></div>
<div class="ttc" id="classb2_body_html_a4238ae43f5afeb2126b8e8bf765334b5"><div class="ttname"><a href="classb2_body.html#a4238ae43f5afeb2126b8e8bf765334b5">b2Body::GetLinearVelocityFromWorldPoint</a></div><div class="ttdeci">b2Vec2 GetLinearVelocityFromWorldPoint(const b2Vec2 &amp;worldPoint) const </div><div class="ttdef"><b>Definition:</b> b2Body.h:598</div></div>
<div class="ttc" id="structb2_vec2_html"><div class="ttname"><a href="structb2_vec2.html">b2Vec2</a></div><div class="ttdoc">A 2D column vector. </div><div class="ttdef"><b>Definition:</b> b2Math.h:56</div></div>
<div class="ttc" id="classb2_contact_html"><div class="ttname"><a href="classb2_contact.html">b2Contact</a></div><div class="ttdef"><b>Definition:</b> b2Contact.h:77</div></div>
<div class="ttc" id="structb2_sweep_html_a35eb9b976ca87c9b8d758bec070c6c06"><div class="ttname"><a href="structb2_sweep.html#a35eb9b976ca87c9b8d758bec070c6c06">b2Sweep::Advance</a></div><div class="ttdeci">void Advance(float32 alpha)</div><div class="ttdef"><b>Definition:</b> b2Math.h:782</div></div>
<div class="ttc" id="structb2_rot_html_acde9186de0a4a7397bf8ef714408ad60"><div class="ttname"><a href="structb2_rot.html#acde9186de0a4a7397bf8ef714408ad60">b2Rot::Set</a></div><div class="ttdeci">void Set(float32 angle)</div><div class="ttdoc">Set using an angle in radians. </div><div class="ttdef"><b>Definition:</b> b2Math.h:373</div></div>
<div class="ttc" id="classb2_body_html_a8f9ef0226b7eb989e700fa8898d29fc0"><div class="ttname"><a href="classb2_body.html#a8f9ef0226b7eb989e700fa8898d29fc0">b2Body::GetLocalPoint</a></div><div class="ttdeci">b2Vec2 GetLocalPoint(const b2Vec2 &amp;worldPoint) const </div><div class="ttdef"><b>Definition:</b> b2Body.h:588</div></div>
<div class="ttc" id="classb2_body_html_a37adc4160b84f73e8552a91cbde3f578"><div class="ttname"><a href="classb2_body.html#a37adc4160b84f73e8552a91cbde3f578">b2Body::SetAngularVelocity</a></div><div class="ttdeci">void SetAngularVelocity(float32 omega)</div><div class="ttdef"><b>Definition:</b> b2Body.h:541</div></div>
<div class="ttc" id="classb2_contact_manager_html"><div class="ttname"><a href="classb2_contact_manager.html">b2ContactManager</a></div><div class="ttdef"><b>Definition:</b> b2ContactManager.h:31</div></div>
<div class="ttc" id="classb2_contact_solver_html"><div class="ttname"><a href="classb2_contact_solver.html">b2ContactSolver</a></div><div class="ttdef"><b>Definition:</b> b2ContactSolver.h:69</div></div>
<div class="ttc" id="classb2_pulley_joint_html"><div class="ttname"><a href="classb2_pulley_joint.html">b2PulleyJoint</a></div><div class="ttdef"><b>Definition:</b> b2PulleyJoint.h:79</div></div>
<div class="ttc" id="classb2_wheel_joint_html"><div class="ttname"><a href="classb2_wheel_joint.html">b2WheelJoint</a></div><div class="ttdef"><b>Definition:</b> b2WheelJoint.h:79</div></div>
<div class="ttc" id="classb2_body_html_a04db0c7b12b315802e58b33884f4f63c"><div class="ttname"><a href="classb2_body.html#a04db0c7b12b315802e58b33884f4f63c">b2Body::GetWorldCenter</a></div><div class="ttdeci">const b2Vec2 &amp; GetWorldCenter() const </div><div class="ttdoc">Get the world position of the center of mass. </div><div class="ttdef"><b>Definition:</b> b2Body.h:511</div></div>
<div class="ttc" id="classb2_body_html_ac9e482f7d9df92801c24e79a7e751d06"><div class="ttname"><a href="classb2_body.html#ac9e482f7d9df92801c24e79a7e751d06">b2Body::Dump</a></div><div class="ttdeci">void Dump()</div><div class="ttdoc">Dump this body to a log file. </div><div class="ttdef"><b>Definition:</b> b2Body.cpp:528</div></div>
<div class="ttc" id="structb2_body_def_html_a0765068172e521ed63cb34084c59c003"><div class="ttname"><a href="structb2_body_def.html#a0765068172e521ed63cb34084c59c003">b2BodyDef::allowSleep</a></div><div class="ttdeci">bool allowSleep</div><div class="ttdef"><b>Definition:</b> b2Body.h:107</div></div>
<div class="ttc" id="classb2_fixture_html"><div class="ttname"><a href="classb2_fixture.html">b2Fixture</a></div><div class="ttdef"><b>Definition:</b> b2Fixture.h:108</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46159502-1', 'auto');
ga('create', 'UA-49880327-7', 'auto', {'name': 'liquidFunTracker'});
ga('send', 'pageview');
ga('liquidFunTracker.send', 'pageview');
</script>
</body>
</html>
